package com.itheima.reggie.service;

import com.itheima.reggie.entity.Category;
import com.itheima.reggie.entity.Page;
import com.itheima.reggie.entity.R;

import java.util.List;

public interface CategoryService {
    void save(Category category);

    R<Page<Category>> findByPage(Integer page, Integer pageSize);

    void delete(Long id);

    void update(Category category);

    List<Category> findAll();

    R<List<Category>> list(Integer type);
}
